package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.NotaryMortgageDO;
import com.mhc.suzuki.dal.query.NotaryMortgageQuery;

import java.util.List;


/**
 * Manager for NotaryMortgage.
 */
public interface NotaryMortgageManager {
    /**
     * query count by query condition.
     */
    int countByQuery(NotaryMortgageQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(NotaryMortgageQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(NotaryMortgageDO record);

    /**
     * insert selective.
     */
    long insertSelective(NotaryMortgageDO record);

    /**
     * select by query condition.
     */
    List<NotaryMortgageDO> selectByQuery(NotaryMortgageQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<NotaryMortgageDO> selectByQueryWithPage(NotaryMortgageQuery query);

    /**
     * select by primary key.
     */
    NotaryMortgageDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( NotaryMortgageDO record,  NotaryMortgageQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(NotaryMortgageDO record, NotaryMortgageQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(NotaryMortgageDO record);
}